package com.ithaima.collectiondemo;

import java.util.ArrayList;
import java.util.Collection;

public class MyCollectonDemo6 {
    public static void main(String[] args) {
        Collection<String> list = new ArrayList<>();
        list.add("qqq");
        list.add("www");
        list.add("eee");
        list.add("qqqq");

        for (String s : list) {
            System.out.println(s);
        }
    }
}
